package com.zx.link.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @Project: link
 * @Title: LinkType
 * @Description: 网络连接的分类
 * @author: zhangx
 * @date: 2017年3月1日 上午11:00:29
 * @company: webyun
 * @Copyright: Copyright (c) 2017
 * @version v1.0
 */
public class LinkType implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;
	
	private String name;
	
	private List<Link> linkList;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Link> getLinkList() {
		return linkList;
	}

	public void setLinkList(List<Link> linkList) {
		this.linkList = linkList;
	}

	public String toJSON() {
		return "{ \"id\":" + this.id + ", \"name\":\"" + this.name + "\"}";
	}
	
}
